package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 组织模型类型表
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpPartyType extends Model<JbdpPartyType> {

    private static final long serialVersionUID=1L;

    /**
     * 类型ID
     */
    @TableId("PARTY_TYPE_ID")
    private String partyTypeId;

    /**
     * 类型名称
     */
    @TableField("TYPE_NAME")
    private String typeName;

    /**
     * 数据实体名
     */
    @TableField("TYPE_ENTITY")
    private String typeEntity;

    /**
     * 数据表名
     */
    @TableField("TYPE_TABLE")
    private String typeTable;

    /**
     * 主键字段
     */
    @TableField("PK_COLUMN")
    private String pkColumn;

    /**
     * 主键属性
     */
    @TableField("PK_PROPERTY")
    private String pkProperty;


    public String getPartyTypeId() {
        return partyTypeId;
    }

    public JbdpPartyType setPartyTypeId(String partyTypeId) {
        this.partyTypeId = partyTypeId;
        return this;
    }

    public String getTypeName() {
        return typeName;
    }

    public JbdpPartyType setTypeName(String typeName) {
        this.typeName = typeName;
        return this;
    }

    public String getTypeEntity() {
        return typeEntity;
    }

    public JbdpPartyType setTypeEntity(String typeEntity) {
        this.typeEntity = typeEntity;
        return this;
    }

    public String getTypeTable() {
        return typeTable;
    }

    public JbdpPartyType setTypeTable(String typeTable) {
        this.typeTable = typeTable;
        return this;
    }

    public String getPkColumn() {
        return pkColumn;
    }

    public JbdpPartyType setPkColumn(String pkColumn) {
        this.pkColumn = pkColumn;
        return this;
    }

    public String getPkProperty() {
        return pkProperty;
    }

    public JbdpPartyType setPkProperty(String pkProperty) {
        this.pkProperty = pkProperty;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.partyTypeId;
    }

    @Override
    public String toString() {
        return "JbdpPartyType{" +
        "partyTypeId=" + partyTypeId +
        ", typeName=" + typeName +
        ", typeEntity=" + typeEntity +
        ", typeTable=" + typeTable +
        ", pkColumn=" + pkColumn +
        ", pkProperty=" + pkProperty +
        "}";
    }
}
